package com.happy.study.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @Author: Wuzh
 * @Description:
 * @Date Created in 22:24 2021/1/25
 * @return
 */
@TableName ("paper_info")
public class PaperEntity extends BaseEntity {
    @TableId ("paperId")
    private Integer paperId;
    @TableField ("paperName")
    private String paperName;
    @TableField ("level")
    private Integer level;
    @TableField ("number")
    private Integer number;
    @TableField ("categoryId")
    private Integer categoryId;

    @TableField(exist = false)
    private String categoryName;

    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public Integer getPaperId () {
        return paperId;
    }

    public void setPaperId ( Integer paperId ) {
        this.paperId = paperId;
    }

    public String getPaperName () {
        return paperName;
    }

    public void setPaperName (String paperName) {
        this.paperName = paperName;
    }

    public Integer getLevel () {
        return level;
    }

    public void setLevel (Integer level) {
        this.level = level;
    }

    public Integer getNumber () {
        return number;
    }

    public void setNumber (Integer number) {
        this.number = number;
    }

    public Integer getCategoryId () {
        return categoryId;
    }

    public void setCategoryId ( Integer categoryId ) {
        this.categoryId = categoryId;
    }

    public String getCategoryName () {
        return categoryName;
    }

    public void setCategoryName ( String categoryName ) {
        this.categoryName = categoryName;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime (Date changeTime) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (Integer isUsed) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "PaperEntity{" +
                "paperId=" + paperId +
                ", paperName='" + paperName + '\'' +
                ", level=" + level +
                ", number=" + number +
                ", categoryId=" + categoryId +
                ", createTime=" + createTime +
                ", changeTime=" + changeTime +
                ", isUsed=" + isUsed +
                '}';
    }
}
